﻿using RAP.Framework.Libary.SqlTaskParser.Parsers;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RAP.Framework.Libary.SqlTaskParser
{
  /// <summary>
  /// 
  /// </summary>
  public class SqlToken
  {
    /// <summary>
    /// 令牌
    /// </summary>
    public string Token { get; set; }

    /// <summary>
    /// 参数
    /// </summary>
    public string Param { get; set; }

    /// <summary>
    /// token的序号
    /// </summary>
    public int? Index { get; set; } = null;

    /// <summary>
    /// Token被识别后的占位标记
    /// </summary>
    public string PlaceholderTag
    {
      get {
        return Index != null ? $"<SqlToken:{Index}>" : null;
      }
    }
  }
}
